<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>采购入库</title>
    <link href="/page/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
    <link href="/page/dist/css/bootstrap-dialog.min.css" rel="stylesheet">
    <link href="/page/dist/css/bootstrap-select.min.css" rel="stylesheet">
    <link href="/page/dist/css/bootstrap-table.min.css" rel="stylesheet">
    <link href="/page/build/css/index.css" rel="stylesheet"/>
    <link href="/page/css/index.css" rel="stylesheet"/>
    <link rel="shortcut icon" href="#"/>
    <script type="text/javascript" src="/page/dist/js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/i18n/defaults-zh_CN.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap-dialog.min.js"></script>
    <script type="text/javascript" src="/page/js/socket/socket.io.js"></script>
    <script type="module" src="/page/js/cookie/js.cookie-2.2.1.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/bootstrap-table.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/i18n/bootstrap-table-zh-CN.min.js"></script>
    <script type="text/javascript" src="/page/dist/js/jquery.serializejson.min.js"></script>
</head>
<body>
<div class="container" style="width: 98%;">
    <div class="row">
        <nav class="navbar navbar-default hidden" id="outbound-nav">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                            data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">采购入库</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <div class="navbar-form navbar-left" action="">
                        <div class="form-group">
                            <input type="text" class="form-control" id="entry-code-info" placeholder="请扫描入库单及货箱编号"
                                   style="width: 450px;font-size: x-large;">
                        </div>
                        <button type="submit" class="btn btn-primary" id="entry-order-btn">确认</button>
                    </div>
                    <!--<ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="#" id="entry-spu-guide" >操作指南</a>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                               aria-haspopup="true" aria-expanded="false">张三 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="#">退出登录</a></li>
                            </ul>
                        </li>
                    </ul>-->
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
    </div>
    <div class="row">
        <div class="form-inline outbound-order-cls" style="padding-top: 150px;text-align: center;" id="outbound-input">
            <input class="input form-control" id="entry-order-no" placeholder="请扫描或输入取货单编号物件领取"
                   style="width: 450px;font-size: x-large;"/>
            <button type="button" class="btn btn-info confirm-btn" id="entry-button">确认</button>
            <div class="simple-keyboard" style="font-size: x-large;"></div>
        </div>
        <div class="form-inline hidden entry-order-cls">
            <div class="col-md-5">
                <h4 style="text-align: center;">
                    <strong>
                        <span>入库采购明细：</span>
                        <span></span>
                    </strong>
                </h4>
                <div class="table table-responsive" id="purchase-detail-info">
                    <table class="table table-responsive" id="purchase-detail-table">
                    </table>
                </div>
            </div>
            <div class="col-md-7" style="display: none;">
                <h4 style="text-align: center;">
                    <button type="button" class="btn btn-info" id="entry-box">确认入库</button>
                    <strong>
                        <span>货箱编号：</span>
                        <span id="box-code"></span>
                        <span id="temp-name"></span>
                        <span id="temp-code" style="display: none;"></span>
                    </strong>
                </h4>
                <div class="table table-responsive" id="table-sort-id">
                    <table class="table table-responsive" id="sort-table">
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="modal fade" id="entry-spu-model" tabindex="-1" role="dialog" aria-labelledby="entry-spu-label">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                aria-hidden="true">×</span></button>
                        <h4 class="modal-title" id="frm-spu-label">采购入库操作指南</h4>
                    </div>
                    <div class="modal-body">
                        <!--暂时先用文字形式，后续优化为图文形式-->
                        <form id="form-frm-demotion">
                            <div class="form-group">
                                <label class="control-label">1、货箱到达缓存位后，请用扫码枪扫描货箱二维码</label>
                            </div>
                            <!--<div class="form-group">
                                <label class="control-label">2、</label>
                            </div>
                            <div class="form-group">
                                <label for="demotion-standard-select" class="control-label">降级标准：</label>
                                <select id="demotion-standard-select" class="selectpicker select-standard-info form-control" data-live-search="true" multiple>
                                </select>
                            </div>-->
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <form class="hidden" id="form-param">
        <input type="hidden" name="deliveryOrderCode" id="delivery-order"/>
        <input type="hidden" name="tempNum" id="temp-num"/>
        <input type="hidden" name="upOrDownPolicy[boxCode]" id="ware-box-code"/>
        <input type="hidden" name="upOrDownPolicy[boxType]" th:value="1"/>
        <input type="hidden" name="upOrDownPolicy[clientId]" th:value="${clientId}" id="client-id"/>
        <input type="hidden" name="upOrDownPolicy[totalWeight]" th:value="0" id="total-weight"/>
        <input type="hidden" name="upOrDownPolicy[consoleId]" th:value="0"/>
        <input type="hidden" name="upOrDownPolicy[operationType]" th:value="1" id="operation-type"/>
        <input type="hidden" name="entryCode" id="entry-code"/>
        <input type="hidden" name="upOrDownPolicy[downToLocation]" th:value="1"/>
        <input type="hidden" name="goodsBox[boxCode]" id="box-code-info"/>
        <input type="hidden" name="goodsBox[weight]" id="box-weight-info" th:value="0"/>
        <!--        仓库编号与登录账户绑定-->
        <input type="hidden" name="goodsBox[warehouseId]" value="1496411511321440258"/>
        <input type="hidden" name="goodsBox[inspectType]" th:value="2"/>
        <input type="hidden" name="bigProduct" th:value="1" id="bigProduct"/>
    </form>
</div>
</body>
<script type="text/javascript" src="/page/js/common.js"></script>
<script type="text/javascript" src="/page/js/wms/entry-large.js"></script>
<script type="text/javascript" src="/page/build/index.js"></script>
<script type="text/javascript" src="/page/build/keyBoard.js"></script>
<script type="text/javascript" src="/page/js/socket.con.js"></script>
</html>